package com.cloud.yadang.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.yadang.user.api.BusService;
import com.cloud.yadang.user.entity.User;
import com.cloud.yadang.user.mapper.LitemallUserMapper;
import com.cloud.yadang.user.service.UserService;
import io.seata.spring.annotation.GlobalTransactional;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2023-02-10
 */
@Service
public class UserServiceImpl extends ServiceImpl<LitemallUserMapper, User> implements UserService {

    private BusService busService;

    @Override
    public void add() {
        // 服务b添加成功
        busService.bus();
        //服务a业务逻辑失败
        int i = 1/0;
    }
}
